An Optimal Arc Consistency Algorithm for a Chain of Atmost Constraints with Cardinality
نویسندگان
چکیده
The ATMOSTSEQCARD constraint is the conjunction of a cardinality constraint on a sequence of n variables and of n− q + 1 constraints ATMOST u on each subsequence of size q. This constraint is useful in car-sequencing and crew-rostering problems. In [18], two algorithms designed for the AMONGSEQ constraint were adapted to this constraint with a O(2n) and O(n) worst case time complexity, respectively. In [10], another algorithm with a O(n logn) worst case time complexity and similarly adaptable to filter ATMOSTSEQCARD in O(n logn) was proposed. In this paper, we introduce an algorithm for achieving Arc Consistency on the ATMOSTSEQCARD constraint with a O(n) (hence optimal) worst case time complexity. We then empirically study the efficiency of our propagator on instances of the car-sequencing and crew-rostering problems.
منابع مشابه
Detecting Cardinality Constraints in CNF
We present novel approaches to detect cardinality constraints expressed in CNF. The first approach is based on a syntactic analysis of specific data structures used in SAT solvers to represent binary and ternary clauses, whereas the second approach is based on a semantic analysis by unit propagation. The syntactic approach computes an approximation of the cardinality constraints AtMost-1 and At...
متن کاملar X iv : 1 10 4 . 25 41 v 1 [ cs . A I ] 1 3 A pr 2 01 1 Kernels for Global Constraints ∗
Bessière et al. (AAAI’08) showed that several intractable global constraints can be efficiently propagated when certain natural problem parameters are small. In particular, the complete propagation of a global constraint is fixed-parameter tractable in k – the number of holes in domains – whenever bound consistency can be enforced in polynomial time; this applies to the global constraints AtMos...
متن کاملArc-Consistency for a Chain of Lexicographic Ordering Constraints
We present an arc-consistency algorithm for a chain of lexicographic ordering constraints on m vectors of n variables each. The algorithm maintains arc-consistency and runs in O(nmd) time per invocation, where d is the cost of certain domain operations.
متن کاملArc Consistency for Global Cardinality Constraints with Costs
A global cardinality constraint (gcc) is speciied in terms of a set of variables X = fx1;:::;xpg which take their values in a subset of V = fv1;:::;vdg. It constrains the number of times each value vi 2 V is assigned to a variable in X to be in an interval li; ui]. A gcc with costs (costgcc) is a generalization of a gcc in which a cost is associated with each value of each variable. Then, each ...
متن کاملKernels for Global Constraints
Bessière et al. (AAAI’08) showed that several intractable global constraints can be efficiently propagated when certain natural problem parameters are small. In particular, the complete propagation of a global constraint is fixed-parameter tractable in k – the number of holes in domains – whenever bound consistency can be enforced in polynomial time; this applies to the global constraints ATMOS...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012